import request from '@/utils/request'

// 查询人员分组列表
export function listUserGroup(query) {
  return request({
    url: '/comn/userGroup/list',
    method: 'get',
    params: query
  })
}

// 查询人员分组详细
export function getUserGroup(userGroupUuid) {
  return request({
    url: '/comn/userGroup/' + userGroupUuid,
    method: 'get'
  })
}

// 新增人员分组
export function addUserGroup(data) {
  return request({
    url: '/comn/userGroup',
    method: 'post',
    data: data
  })
}

// 修改人员分组
export function updateUserGroup(data) {
  return request({
    url: '/comn/userGroup',
    method: 'put',
    data: data
  })
}

// 删除人员分组
export function delUserGroup(userGroupUuid) {
  return request({
    url: '/comn/userGroup/' + userGroupUuid,
    method: 'delete'
  })
}
